package utils;

import game.Entity2D;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionListener;

public class TestMouseListener implements MouseMotionListener{

	private Entity2D testMob;
	
	public TestMouseListener( Entity2D testMob) {
		this.testMob = testMob;
	}

	@Override
	public void mouseMoved(MouseEvent e) {
		testMob.setCoordinate( e.getX(), e.getY(), 0);
	}
	
	@Override
	public void mouseDragged(MouseEvent e) {
		testMob.setCoordinate( e.getX(), e.getY(), 0);
	}
}
